import request from '@/utils/request'

// 获取小区列表
export const getCommunityList = params => {
  return request.get('/houses/condition', {
    params
  })
}
// 获取房屋列表
export const getHouseList = params => {
  return request.get('/houses', {
    params
  })
}
// 查看房屋信息
export const getDetail = id => {
  return request.get('/houses/' + id)
}
// 收藏房屋
export const collectHouse = id => {
  return request.get('/user/favorites/' + id)
}
// 获取筛选条件
export const getFilterValue = () => {
  return request.get('/houses/params')
}
